/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80014
 Source Host           : localhost:3306
 Source Schema         : jwt-db

 Target Server Type    : MySQL
 Target Server Version : 80014
 File Encoding         : 65001

 Date: 17/03/2022 14:36:29
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `user_id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `nick_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
INSERT INTO `user` VALUES (1, '20191001', '林霆锋', '$2a$10$6KeES1vXmuoWNlM8COBsv.Q4rqMGSljtfSoUo1Fd20LOPFrQV26CS', 0);
COMMIT;

-- ----------------------------
-- Table structure for user_per
-- ----------------------------
DROP TABLE IF EXISTS `user_per`;
CREATE TABLE `user_per` (
  `user_id` int(11) DEFAULT NULL,
  `permission_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user_per
-- ----------------------------
BEGIN;
INSERT INTO `user_per` VALUES (1, 1);
INSERT INTO `user_per` VALUES (1, 2);
COMMIT;

-- ----------------------------
-- Table structure for user_permissions
-- ----------------------------
DROP TABLE IF EXISTS `user_permissions`;
CREATE TABLE `user_permissions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `value` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of user_permissions
-- ----------------------------
BEGIN;
INSERT INTO `user_permissions` VALUES (1, 'Check');
INSERT INTO `user_permissions` VALUES (2, 'Insert');
INSERT INTO `user_permissions` VALUES (3, 'Update');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
